<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: MySpace::RestV1</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">MySpace::RestV1</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../files/myspace/API/RestV1_rb.html">
                myspace/API/RestV1.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                Object
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000154">clear_global_appdata</a>&nbsp;&nbsp;
      <a href="#M000157">clear_user_appdata</a>&nbsp;&nbsp;
      <a href="#M000150">get_activities</a>&nbsp;&nbsp;
      <a href="#M000133">get_album</a>&nbsp;&nbsp;
      <a href="#M000132">get_album_info</a>&nbsp;&nbsp;
      <a href="#M000131">get_albums</a>&nbsp;&nbsp;
      <a href="#M000160">get_comments</a>&nbsp;&nbsp;
      <a href="#M000134">get_friends</a>&nbsp;&nbsp;
      <a href="#M000151">get_friends_activities</a>&nbsp;&nbsp;
      <a href="#M000136">get_friends_list</a>&nbsp;&nbsp;
      <a href="#M000135">get_friendship</a>&nbsp;&nbsp;
      <a href="#M000152">get_global_appdata</a>&nbsp;&nbsp;
      <a href="#M000159">get_indicators</a>&nbsp;&nbsp;
      <a href="#M000137">get_mood</a>&nbsp;&nbsp;
      <a href="#M000142">get_moods</a>&nbsp;&nbsp;
      <a href="#M000144">get_photo</a>&nbsp;&nbsp;
      <a href="#M000143">get_photos</a>&nbsp;&nbsp;
      <a href="#M000145">get_profile</a>&nbsp;&nbsp;
      <a href="#M000146">get_status</a>&nbsp;&nbsp;
      <a href="#M000155">get_user_appdata</a>&nbsp;&nbsp;
      <a href="#M000158">get_user_friends_appdata</a>&nbsp;&nbsp;
      <a href="#M000130">get_userid</a>&nbsp;&nbsp;
      <a href="#M000149">get_video</a>&nbsp;&nbsp;
      <a href="#M000148">get_videos</a>&nbsp;&nbsp;
      <a href="#M000141">mood_id</a>&nbsp;&nbsp;
      <a href="#M000140">mood_names</a>&nbsp;&nbsp;
      <a href="#M000139">moods</a>&nbsp;&nbsp;
      <a href="#M000129">new</a>&nbsp;&nbsp;
      <a href="#M000161">set_Notifications</a>&nbsp;&nbsp;
      <a href="#M000153">set_global_appdata</a>&nbsp;&nbsp;
      <a href="#M000138">set_mood</a>&nbsp;&nbsp;
      <a href="#M000147">set_status</a>&nbsp;&nbsp;
      <a href="#M000156">set_user_appdata</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000129" class="method-detail">
        <a name="M000129"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000129.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000129.html');return false;">
          <span class="method-name">new</span><span class="method-args">(myspaceContext)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000154" class="method-detail">
        <a name="M000154"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000154.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000154.html');return false;">
          <span class="method-name">clear_global_appdata</span><span class="method-args">(*keys)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
clears the global application data
</p>
        </div>
      </div>

      <div id="method-M000157" class="method-detail">
        <a name="M000157"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000157.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000157.html');return false;">
          <span class="method-name">clear_user_appdata</span><span class="method-args">(user_id, *keys)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000150" class="method-detail">
        <a name="M000150"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000150.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000150.html');return false;">
          <span class="method-name">get_activities</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the activity stream of user <tt>user_id</tt>
</p>
        </div>
      </div>

      <div id="method-M000133" class="method-detail">
        <a name="M000133"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000133.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000133.html');return false;">
          <span class="method-name">get_album</span><span class="method-args">(user_id, album_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Get the photo descriptions for the photos of album <tt>album_id</tt> for
the user <tt>user_id</tt>:
</p>
<pre>
  {&quot;photos&quot;=&gt;
    [{&quot;smallImageUri&quot;=&gt;
       &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;,
       &quot;photoUri&quot;=&gt;
       &quot;http://api.myspace.com/v1/users/456073223/albums/40418/photos/100809&quot;,
       &quot;id&quot;=&gt;100809,
       &quot;uploadDate&quot;=&gt;&quot;2/27/2009 10:14:12 AM&quot;,
       &quot;caption&quot;=&gt;&quot;&quot;,
       &quot;lastUpdatedDate&quot;=&gt;&quot;&quot;,
       &quot;imageUri&quot;=&gt;
       &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
       &quot;user&quot;=&gt;
       {&quot;name&quot;=&gt;&quot;Bob&quot;,
         &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
         &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
         &quot;largeImage&quot;=&gt;
         &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
         &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
         &quot;userId&quot;=&gt;456073223,
         &quot;image&quot;=&gt;
         &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}],
    &quot;count&quot;=&gt;1,
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}
</pre>
        </div>
      </div>

      <div id="method-M000132" class="method-detail">
        <a name="M000132"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000132.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000132.html');return false;">
          <span class="method-name">get_album_info</span><span class="method-args">(user_id, album_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Get the photo album description for user <tt>user_id</tt> and album
<tt>album_id</tt>
</p>
<p>
{&quot;photosUri&quot;=&gt;&quot;<a
href="http://api.myspace.com/v1/users/456073223/albums/40418/photos">api.myspace.com/v1/users/456073223/albums/40418/photos</a>&quot;,
</p>
<pre>
 &quot;photoCount&quot;=&gt;1,
 &quot;location&quot;=&gt;&quot;&quot;,
 &quot;title&quot;=&gt;&quot;My Photos&quot;,
 &quot;id&quot;=&gt;40418,
 &quot;defaultImage&quot;=&gt;
   &quot;http://c1.ac-images.myspacecdn.com/images02/45/m_f820313641924f0f90004932c8bc310c.jpg&quot;,
 &quot;privacy&quot;=&gt;&quot;Everyone&quot;,
 &quot;user&quot;=&gt;
   {&quot;name&quot;=&gt;&quot;Bob&quot;,
   &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
   &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
   &quot;largeImage&quot;=&gt;
   &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
   &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
   &quot;userId&quot;=&gt;456073223,
   &quot;image&quot;=&gt;
   &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;},
 &quot;albumUri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223/albums/40418&quot;}
</pre>
        </div>
      </div>

      <div id="method-M000131" class="method-detail">
        <a name="M000131"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000131.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000131.html');return false;">
          <span class="method-name">get_albums</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Get the photo album descriptions for the user <tt>user_id</tt>:
</p>
<pre>
  {&quot;albums&quot;=&gt;
    [{&quot;photosUri&quot;=&gt;
       &quot;http://api.myspace.com/v1/users/456073223/albums/40418/photos&quot;,
       &quot;photoCount&quot;=&gt;1,
       &quot;location&quot;=&gt;&quot;&quot;,
       &quot;title&quot;=&gt;&quot;My Photos&quot;,
       &quot;id&quot;=&gt;40418,
       &quot;defaultImage&quot;=&gt;
       &quot;http://c1.ac-images.myspacecdn.com/images02/45/m_f820313641924f0f90004932c8bc310c.jpg&quot;,
       &quot;privacy&quot;=&gt;&quot;Everyone&quot;,
       &quot;user&quot;=&gt;
       {&quot;name&quot;=&gt;&quot;Bob&quot;,
         &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
         &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
         &quot;largeImage&quot;=&gt;
         &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
         &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
         &quot;userId&quot;=&gt;456073223,
         &quot;image&quot;=&gt;
         &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;},
       &quot;albumUri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223/albums/40418&quot;}],
    &quot;count&quot;=&gt;1,
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}
</pre>
        </div>
      </div>

      <div id="method-M000160" class="method-detail">
        <a name="M000160"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000160.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000160.html');return false;">
          <span class="method-name">get_comments</span><span class="method-args">(user_id)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000134" class="method-detail">
        <a name="M000134"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000134.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000134.html');return false;">
          <span class="method-name">get_friends</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the list of friends for the user <tt>user_id</tt>:
</p>
<pre>
  {&quot;topFriends&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223/friends?list=top&quot;,
    &quot;Friends&quot;=&gt;
    [{&quot;name&quot;=&gt;&quot;Tom&quot;,
       &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/6221&quot;,
       &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/tom&quot;,
       &quot;largeImage&quot;=&gt;&quot;http://b2.ac-images.myspacecdn.com/00000/20/52/2502_l.jpg&quot;,
       &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
       &quot;userId&quot;=&gt;6221,
       &quot;image&quot;=&gt;&quot;http://b2.ac-images.myspacecdn.com/00000/20/52/2502_s.jpg&quot;}],
    &quot;count&quot;=&gt;1,
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}
</pre>
        </div>
      </div>

      <div id="method-M000151" class="method-detail">
        <a name="M000151"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000151.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000151.html');return false;">
          <span class="method-name">get_friends_activities</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the activity streams of the friends of user <tt>user_id</tt>
</p>
        </div>
      </div>

      <div id="method-M000136" class="method-detail">
        <a name="M000136"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000136.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000136.html');return false;">
          <span class="method-name">get_friends_list</span><span class="method-args">(user_id, *friend_ids)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the list of friends for the user <tt>user_id</tt>, for the friends in
<tt>friend_ids</tt>. Use this call if you only need information about a
specific set of friends whose ids you already know.
</p>
        </div>
      </div>

      <div id="method-M000135" class="method-detail">
        <a name="M000135"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000135.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000135.html');return false;">
          <span class="method-name">get_friendship</span><span class="method-args">(user_id, *friend_ids)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Tests whether user <tt>user_id</tt> is friends with one or more other
users:
</p>
<pre>
  {&quot;friendship&quot;=&gt;
    [{&quot;areFriends&quot;=&gt;true, &quot;friendId&quot;=&gt;6221},
     {&quot;areFriends&quot;=&gt;false, &quot;friendId&quot;=&gt;12341234},
     {&quot;areFriends&quot;=&gt;true, &quot;friendId&quot;=&gt;456073223}],
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}
</pre>
        </div>
      </div>

      <div id="method-M000152" class="method-detail">
        <a name="M000152"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000152.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000152.html');return false;">
          <span class="method-name">get_global_appdata</span><span class="method-args">(*keys)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the global application data. This can be anything the application
wants. If you pass <tt>keys</tt>, only return data corresponding to the
passed keys.
</p>
        </div>
      </div>

      <div id="method-M000159" class="method-detail">
        <a name="M000159"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000159.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000159.html');return false;">
          <span class="method-name">get_indicators</span><span class="method-args">(user_id)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000137" class="method-detail">
        <a name="M000137"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000137.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000137.html');return false;">
          <span class="method-name">get_mood</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the mood of user <tt>user_id</tt>:
</p>
<pre>
  {&quot;mood&quot;=&gt;&quot;tested&quot;,
    &quot;moodImageUrl&quot;=&gt;
    &quot;http://x.myspacecdn.com/images/blog/moods/iBrads/indescribable.gif&quot;,
    &quot;moodLastUpdated&quot;=&gt;&quot;2/27/2009 10:19:25 AM&quot;,
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}
</pre>
        </div>
      </div>

      <div id="method-M000142" class="method-detail">
        <a name="M000142"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000142.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000142.html');return false;">
          <span class="method-name">get_moods</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the list of available <a href="RestV1.html#M000139">moods</a> for user
<tt>user_id</tt>.
</p>
        </div>
      </div>

      <div id="method-M000144" class="method-detail">
        <a name="M000144"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000144.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000144.html');return false;">
          <span class="method-name">get_photo</span><span class="method-args">(user_id, photo_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the photo description for photo <tt>photo_id</tt> for user
<tt>user_id</tt>:
</p>
<pre>
  {&quot;smallImageUri&quot;=&gt;
    &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;,
    &quot;photoUri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223/photos/100809&quot;,
    &quot;id&quot;=&gt;100809,
    &quot;uploadDate&quot;=&gt;&quot;2/27/2009 10:14:12 AM&quot;,
    &quot;caption&quot;=&gt;&quot;&quot;,
    &quot;lastUpdatedDate&quot;=&gt;&quot;&quot;,
    &quot;imageUri&quot;=&gt;
    &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}
</pre>
        </div>
      </div>

      <div id="method-M000143" class="method-detail">
        <a name="M000143"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000143.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000143.html');return false;">
          <span class="method-name">get_photos</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the photo descriptions for the photos that belong to user
<tt>user_id</tt>:
</p>
<pre>
  {&quot;photos&quot;=&gt;
    [{&quot;smallImageUri&quot;=&gt;
       &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;,
       &quot;photoUri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223/photos/100809&quot;,
       &quot;id&quot;=&gt;100809,
       &quot;uploadDate&quot;=&gt;&quot;2/27/2009 10:14:12 AM&quot;,
       &quot;caption&quot;=&gt;&quot;&quot;,
       &quot;lastUpdatedDate&quot;=&gt;&quot;&quot;,
       &quot;imageUri&quot;=&gt;
       &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
       &quot;user&quot;=&gt;
       {&quot;name&quot;=&gt;&quot;Bob&quot;,
         &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
         &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
         &quot;largeImage&quot;=&gt;
         &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
         &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
         &quot;userId&quot;=&gt;456073223,
         &quot;image&quot;=&gt;
         &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}],
    &quot;count&quot;=&gt;1,
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}
</pre>
        </div>
      </div>

      <div id="method-M000145" class="method-detail">
        <a name="M000145"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000145.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000145.html');return false;">
          <span class="method-name">get_profile</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the profile info for user <tt>user_id</tt>:
</p>
<pre>
  {&quot;region&quot;=&gt;&quot;California&quot;,
    &quot;city&quot;=&gt;&quot;BEVERLY HILLS&quot;,
    &quot;country&quot;=&gt;&quot;US&quot;,
    &quot;postalcode&quot;=&gt;&quot;90210&quot;,
    &quot;gender&quot;=&gt;&quot;Male&quot;,
    &quot;type&quot;=&gt;&quot;full&quot;,
    &quot;culture&quot;=&gt;&quot;en-US&quot;,
    &quot;aboutme&quot;=&gt;&quot;&quot;,
    &quot;hometown&quot;=&gt;&quot;&quot;,
    &quot;basicprofile&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;lastUpdatedDate&quot;=&gt;&quot;2/27/2009 10:20:02 AM&quot;,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;},
    &quot;age&quot;=&gt;88,
    &quot;maritalstatus&quot;=&gt;&quot;Single&quot;}
</pre>
        </div>
      </div>

      <div id="method-M000146" class="method-detail">
        <a name="M000146"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000146.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000146.html');return false;">
          <span class="method-name">get_status</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the status of user <tt>user_id</tt>:
</p>
<pre>
  {&quot;mood&quot;=&gt;&quot;tested&quot;,
    &quot;moodImageUrl&quot;=&gt;
    &quot;http://x.myspacecdn.com/images/blog/moods/iBrads/indescribable.gif&quot;,
    &quot;moodLastUpdated&quot;=&gt;&quot;2/27/2009 10:19:25 AM&quot;,
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;},
    &quot;status&quot;=&gt;&quot;Testing&quot;}
</pre>
        </div>
      </div>

      <div id="method-M000155" class="method-detail">
        <a name="M000155"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000155.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000155.html');return false;">
          <span class="method-name">get_user_appdata</span><span class="method-args">(user_id, *keys)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000158" class="method-detail">
        <a name="M000158"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000158.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000158.html');return false;">
          <span class="method-name">get_user_friends_appdata</span><span class="method-args">(user_id, *keys)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000130" class="method-detail">
        <a name="M000130"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000130.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000130.html');return false;">
          <span class="method-name">get_userid</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Get the user id of the currently logged in user.
</p>
        </div>
      </div>

      <div id="method-M000149" class="method-detail">
        <a name="M000149"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000149.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000149.html');return false;">
          <span class="method-name">get_video</span><span class="method-args">(user_id, video_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the video description for the video <tt>video_id</tt> of user
<tt>user_id</tt>:
</p>
<pre>
  {&quot;totalrating&quot;=&gt;&quot;0&quot;,
    &quot;title&quot;=&gt;&quot;110403na&quot;,
    &quot;resourceuserid&quot;=&gt;&quot;456073223&quot;,
    &quot;mediastatus&quot;=&gt;&quot;ProcessingSuccessful&quot;,
    &quot;dateupdated&quot;=&gt;&quot;3/5/2009 11:24:23 AM&quot;,
    &quot;country&quot;=&gt;&quot;US&quot;,
    &quot;totalviews&quot;=&gt;&quot;0&quot;,
    &quot;thumbnail&quot;=&gt;
    &quot;http://d1.ac-videos.myspacecdn.com/videos02/8/thumb1_461592d881c14023bcb6a73275ebc614.jpg&quot;,
    &quot;language&quot;=&gt;&quot;en&quot;,
    &quot;id&quot;=&gt;53551799,
    &quot;totalcomments&quot;=&gt;&quot;0&quot;,
    &quot;runtime&quot;=&gt;&quot;219&quot;,
    &quot;datecreated&quot;=&gt;&quot;3/5/2009 11:24:23 AM&quot;,
    &quot;privacy&quot;=&gt;&quot;Public&quot;,
    &quot;mediatype&quot;=&gt;&quot;4&quot;,
    &quot;description&quot;=&gt;&quot;110403na&quot;,
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;},
    &quot;totalvotes&quot;=&gt;&quot;0&quot;,
    &quot;videoUri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223/videos/53551799&quot;}
</pre>
        </div>
      </div>

      <div id="method-M000148" class="method-detail">
        <a name="M000148"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000148.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000148.html');return false;">
          <span class="method-name">get_videos</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the video descriptions for the videos of user <tt>user_id</tt>:
</p>
<pre>
  {&quot;videos&quot;=&gt;
    [{&quot;totalrating&quot;=&gt;&quot;0&quot;,
       &quot;title&quot;=&gt;&quot;110403na&quot;,
       &quot;resourceuserid&quot;=&gt;&quot;456073223&quot;,
       &quot;mediastatus&quot;=&gt;&quot;ProcessingSuccessful&quot;,
       &quot;dateupdated&quot;=&gt;&quot;3/5/2009 11:24:23 AM&quot;,
       &quot;country&quot;=&gt;&quot;US&quot;,
       &quot;totalviews&quot;=&gt;&quot;0&quot;,
       &quot;thumbnail&quot;=&gt;
       &quot;http://d4.ac-videos.myspacecdn.com/videos02/8/thumb1_1bd4f5fde59540c2981c35b27c15a0f3.jpg&quot;,
       &quot;language&quot;=&gt;&quot;en&quot;,
       &quot;id&quot;=&gt;53551799,
       &quot;totalcomments&quot;=&gt;&quot;0&quot;,
       &quot;runtime&quot;=&gt;&quot;219&quot;,
       &quot;datecreated&quot;=&gt;&quot;3/5/2009 11:24:23 AM&quot;,
       &quot;privacy&quot;=&gt;&quot;Public&quot;,
       &quot;mediatype&quot;=&gt;&quot;4&quot;,
       &quot;description&quot;=&gt;&quot;110403na&quot;,
       &quot;user&quot;=&gt;
       {&quot;name&quot;=&gt;&quot;Bob&quot;,
         &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
         &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
         &quot;largeImage&quot;=&gt;
         &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
         &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
         &quot;userId&quot;=&gt;456073223,
         &quot;image&quot;=&gt;
         &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;},
       &quot;totalvotes&quot;=&gt;&quot;0&quot;,
       &quot;videoUri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223/videos/53551799&quot;}],
    &quot;count&quot;=&gt;1,
    &quot;user&quot;=&gt;
    {&quot;name&quot;=&gt;&quot;Bob&quot;,
      &quot;uri&quot;=&gt;&quot;http://api.myspace.com/v1/users/456073223&quot;,
      &quot;webUri&quot;=&gt;&quot;http://www.myspace.com/bobvontestacount&quot;,
      &quot;largeImage&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/l_f820313641924f0f90004932c8bc310c.jpg&quot;,
      &quot;userType&quot;=&gt;&quot;RegularUser&quot;,
      &quot;userId&quot;=&gt;456073223,
      &quot;image&quot;=&gt;
      &quot;http://c1.ac-images.myspacecdn.com/images02/45/s_f820313641924f0f90004932c8bc310c.jpg&quot;}}
</pre>
        </div>
      </div>

      <div id="method-M000141" class="method-detail">
        <a name="M000141"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000141.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000141.html');return false;">
          <span class="method-name">mood_id</span><span class="method-args">(user_id, name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Given a <tt>user_id</tt> and the name of a mood, returns the corresponding
mood id
</p>
        </div>
      </div>

      <div id="method-M000140" class="method-detail">
        <a name="M000140"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000140.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000140.html');return false;">
          <span class="method-name">mood_names</span><span class="method-args">(user_id)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets the mood names available for user <tt>user_id</tt>.
</p>
        </div>
      </div>

      <div id="method-M000139" class="method-detail">
        <a name="M000139"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000139.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000139.html');return false;">
          <span class="method-name">moods</span><span class="method-args">(user_id)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Gets and caches the list of available <a
href="RestV1.html#M000139">moods</a> for user <tt>user_id</tt>.
</p>
        </div>
      </div>

      <div id="method-M000161" class="method-detail">
        <a name="M000161"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000161.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000161.html');return false;">
          <span class="method-name">set_Notifications</span><span class="method-args">(application_Id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000153" class="method-detail">
        <a name="M000153"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000153.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000153.html');return false;">
          <span class="method-name">set_global_appdata</span><span class="method-args">(params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Sets the global application data.This can be anything that application
wants
</p>
        </div>
      </div>

      <div id="method-M000138" class="method-detail">
        <a name="M000138"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000138.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000138.html');return false;">
          <span class="method-name">set_mood</span><span class="method-args">(user_id, mood_id)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Sets the mood of the user <tt>user_id</tt> to <tt><a
href="RestV1.html#M000141">mood_id</a></tt>, which must be a number from
this list:
</p>
<p>
<a
href="http://wiki.developer.myspace.com/index.php?title=Myspace_mood_data_names_codes_images">wiki.developer.myspace.com/index.php?title=Myspace_mood_data_names_codes_images</a>
</p>
        </div>
      </div>

      <div id="method-M000147" class="method-detail">
        <a name="M000147"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000147.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000147.html');return false;">
          <span class="method-name">set_status</span><span class="method-args">(user_id, status)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Sets the status of the user <tt>user_id</tt>
</p>
        </div>
      </div>

      <div id="method-M000156" class="method-detail">
        <a name="M000156"></a>

        <div class="method-heading">
          <a href="RestV1.src/M000156.html" target="Code" class="method-signature"
            onclick="popupCode('RestV1.src/M000156.html');return false;">
          <span class="method-name">set_user_appdata</span><span class="method-args">(user_id, params = {})</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>